package com.mondo.financialwallet.data.entity;

import java.text.DecimalFormat;

public class WalletAssetEntity extends BasisResponseEntity {

    /**
     * data : 3147.91
     */

    private double data;

    public double getData() {
        return data;
    }

    public void setData(double data) {
        this.data = data;
    }

    public String getDataToString(){
        if (data == 0){
            return "0";
        }

        DecimalFormat formatter = new DecimalFormat("##,###,###.########");
        return formatter.format(this.data);
    }

    public String getAmount(){
        if (data == 0){
            return "0";
        }

        return new DecimalFormat("########.########").format(data);
    }
}
